package com.yiqi.lottery.framework.api;

import com.suozhang.framework.entity.bo.PageData;
import com.suozhang.framework.entity.bo.Result;
import com.yiqi.lottery.entity.bo.*;
import io.reactivex.Observable;
import okhttp3.MultipartBody;
import okhttp3.RequestBody;
import retrofit2.http.*;

import java.util.List;

public interface FindApi {
    /**
     * 晒单全
     **/
    @GET("v1/posts")
    Observable<Result<PageData<CircleBo>>> findCircleGet(@Query("page") int page, @Query("post_type") int post_type, @Query("type") int type);

    @POST("v1/like")
    Observable<Result<String>> dianZan(@Body BaseBo baseBo);

    @DELETE("v1/like/{id}")
    Observable<Result<String>> cancleDianZan(@Path("id") Integer id);
    /**
     * 我的晒单全
     * */

    @GET("v1/posts/list")
    Observable<Result<PageData<CircleBo>>> findCircleMine(@Query("page") int page);

    /**
     * 开奖结果
     */
    @GET("v1/lothis")
    Observable<Result<List<LotteryResultBo>>> getLotteryResult(@Query("listen") int listen);

    /**
     * 开奖历史
     */
    @GET("/v1/lothis/list")
    Observable<Result<List<LotteryHistoryBo>>> getLotteryHistory(@Query("label") String label);

    /**
     * 比分直播
     */
    @GET("/v1/lothis/live")
    Observable<Result<FindScoreBo>> getScoreLive(@Query("type") int type);

    /**
     * 获取上传七牛token
     */
    @GET("/v1/app/upload-token")
    Observable<Result<TokenBo>> getQiniuToken();

    /**
     * 上传
     **/
    @POST("v1/posts")
    Observable<Result<String>> postCircle(@Body PostCircleBo postCircleBo);

    /**
     *关注
     * **/
    @GET("/v1/posts/{id}")
    Observable<Result<FoucsBo>> getFoucsDetail(@Path("id") String id);
    /***
     * 焦点赛事
     * */

    @GET("/v1/app/home/jiaddian")
    Observable<Result<String>> getJiaddian();

    /***
     * 中将专栏
     * */

    @GET("/v1/app/home/zhongjiang")
    Observable<Result<String>> getZhongjiang();


}
